package com.industrial.premu.mapper;

import java.util.List;
import com.industrial.premu.domain.PreMuIndexWeightSub;
import org.apache.ibatis.annotations.Param;

/**
 * 指标管理子Mapper接口
 *
 * @author ruoyi
 * @date 2024-01-23
 */
public interface PreMuIndexWeightSubMapper
{
    /**
     * 查询指标管理子
     *
     * @param baseId 指标管理子主键
     * @return 指标管理子
     */
    public PreMuIndexWeightSub selectPreMuIndexWeightSubByBaseId(String baseId);

    /**
     * 查询指标管理子列表
     *
     * @param preMuIndexWeightSub 指标管理子
     * @return 指标管理子集合
     */
    public List<PreMuIndexWeightSub> selectPreMuIndexWeightSubList(PreMuIndexWeightSub preMuIndexWeightSub);

    /**
     * 新增指标管理子
     *
     * @param preMuIndexWeightSub 指标管理子
     * @return 结果
     */
    public int insertPreMuIndexWeightSub(PreMuIndexWeightSub preMuIndexWeightSub);

    /**
     * 修改指标管理子
     *
     * @param preMuIndexWeightSub 指标管理子
     * @return 结果
     */
    public int updatePreMuIndexWeightSub(PreMuIndexWeightSub preMuIndexWeightSub);

    /**
     * 删除指标管理子
     *
     * @param baseId 指标管理子主键
     * @return 结果
     */
    public int deletePreMuIndexWeightSubByBaseId(String baseId);

    /**
     * 批量删除指标管理子
     *
     * @param baseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePreMuIndexWeightSubByBaseIds(String[] baseIds);

    void batchInsertPreMuIndexValue(@Param("list") List<PreMuIndexWeightSub> preMuIndexWeightSubList);

    void deletePreMuIndexWeightSubByPkId(@Param("baseId") String baseId);
}
